package com.fzn.springcloud.alibaba.service;

import com.fzn.springcloud.entities.CommonResult;
import com.fzn.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @program: springcloud
 * 描述：
 * @author: fzn
 * @create: 2022-03-14 19:47
 **/
@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444,"服务降级返回,没有该流水信息",new Payment(id, "errorSerial......"));
    }
}